3.39 \(\int \frac{c+d x^2}{(a+b x^2)^3} \, dx\)

Optimal. Leaf size=92 \[ \frac{(a d+3 b c) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{8 a^{5/2} b^{3/2}}+\frac{x (a d+3 b c)}{8 a^2 b \left (a+b x^2\right )}+\frac{x (b c-a d)}{4 a b \left (a+b x^2\right )^2} \]

[Out]

((b*c - a*d)*x)/(4*a*b*(a + b*x^2)^2) + ((3*b*c + a*d)*x)/(8*a^2*b*(a + b*x^2)) + ((3*b*c + a*d)*ArcTan[(Sqrt[
b]*x)/Sqrt[a]])/(8*a^(5/2)*b^(3/2))

________________________________________________________________________________________

Rubi [A]  time = 0.0328971, antiderivative size = 92, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.176, Rules used = {385, 199, 205} \[ \frac{(a d+3 b c) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{8 a^{5/2} b^{3/2}}+\frac{x (a d+3 b c)}{8 a^2 b \left (a+b x^2\right )}+\frac{x (b c-a d)}{4 a b \left (a+b x^2\right )^2} \]

Antiderivative was successfully verified.

[In]

Int[(c + d*x^2)/(a + b*x^2)^3,x]

[Out]

((b*c - a*d)*x)/(4*a*b*(a + b*x^2)^2) + ((3*b*c + a*d)*x)/(8*a^2*b*(a + b*x^2)) + ((3*b*c + a*d)*ArcTan[(Sqrt[
b]*x)/Sqrt[a]])/(8*a^(5/2)*b^(3/2))

Rule 385

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> -Simp[((b*c - a*d)*x*(a + b*x^n)^(p +
 1))/(a*b*n*(p + 1)), x] - Dist[(a*d - b*c*(n*(p + 1) + 1))/(a*b*n*(p + 1)), Int[(a + b*x^n)^(p + 1), x], x] /
; FreeQ[{a, b, c, d, n, p}, x] && NeQ[b*c - a*d, 0] && (LtQ[p, -1] || ILtQ[1/n + p, 0])

Rule 199

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> -Simp[(x*(a + b*x^n)^(p + 1))/(a*n*(p + 1)), x] + Dist[(n*(p +
 1) + 1)/(a*n*(p + 1)), Int[(a + b*x^n)^(p + 1), x], x] /; FreeQ[{a, b}, x] && IGtQ[n, 0] && LtQ[p, -1] && (In
tegerQ[2*p] || (n == 2 && IntegerQ[4*p]) || (n == 2 && IntegerQ[3*p]) || Denominator[p + 1/n] < Denominator[p]
)

Rule 205

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]*ArcTan[x/Rt[a/b, 2]])/a, x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rubi steps

\begin{align*} \int \frac{c+d x^2}{\left (a+b x^2\right )^3} \, dx &=\frac{(b c-a d) x}{4 a b \left (a+b x^2\right )^2}+\frac{(3 b c+a d) \int \frac{1}{\left (a+b x^2\right )^2} \, dx}{4 a b}\\ &=\frac{(b c-a d) x}{4 a b \left (a+b x^2\right )^2}+\frac{(3 b c+a d) x}{8 a^2 b \left (a+b x^2\right )}+\frac{(3 b c+a d) \int \frac{1}{a+b x^2} \, dx}{8 a^2 b}\\ &=\frac{(b c-a d) x}{4 a b \left (a+b x^2\right )^2}+\frac{(3 b c+a d) x}{8 a^2 b \left (a+b x^2\right )}+\frac{(3 b c+a d) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{8 a^{5/2} b^{3/2}}\\ \end{align*}

Mathematica [A]  time = 0.0633886, size = 84, normalized size = 0.91 \[ \frac{x \left (a^2 (-d)+a b \left (5 c+d x^2\right )+3 b^2 c x^2\right )}{8 a^2 b \left (a+b x^2\right )^2}+\frac{(a d+3 b c) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{8 a^{5/2} b^{3/2}} \]

Antiderivative was successfully verified.

[In]

Integrate[(c + d*x^2)/(a + b*x^2)^3,x]

[Out]

(x*(-(a^2*d) + 3*b^2*c*x^2 + a*b*(5*c + d*x^2)))/(8*a^2*b*(a + b*x^2)^2) + ((3*b*c + a*d)*ArcTan[(Sqrt[b]*x)/S
qrt[a]])/(8*a^(5/2)*b^(3/2))

________________________________________________________________________________________

Maple [A]  time = 0.007, size = 89, normalized size = 1. \begin{align*}{\frac{1}{ \left ( b{x}^{2}+a \right ) ^{2}} \left ({\frac{ \left ( ad+3\,bc \right ){x}^{3}}{8\,{a}^{2}}}-{\frac{ \left ( ad-5\,bc \right ) x}{8\,ab}} \right ) }+{\frac{d}{8\,ab}\arctan \left ({bx{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}}+{\frac{3\,c}{8\,{a}^{2}}\arctan \left ({bx{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d*x^2+c)/(b*x^2+a)^3,x)

[Out]

(1/8*(a*d+3*b*c)/a^2*x^3-1/8*(a*d-5*b*c)/a/b*x)/(b*x^2+a)^2+1/8/a/b/(a*b)^(1/2)*arctan(b*x/(a*b)^(1/2))*d+3/8/
a^2/(a*b)^(1/2)*arctan(b*x/(a*b)^(1/2))*c

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x^2+c)/(b*x^2+a)^3,x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [A]  time = 1.60605, size = 621, normalized size = 6.75 \begin{align*} \left [\frac{2 \,{\left (3 \, a b^{3} c + a^{2} b^{2} d\right )} x^{3} -{\left ({\left (3 \, b^{3} c + a b^{2} d\right )} x^{4} + 3 \, a^{2} b c + a^{3} d + 2 \,{\left (3 \, a b^{2} c + a^{2} b d\right )} x^{2}\right )} \sqrt{-a b} \log \left (\frac{b x^{2} - 2 \, \sqrt{-a b} x - a}{b x^{2} + a}\right ) + 2 \,{\left (5 \, a^{2} b^{2} c - a^{3} b d\right )} x}{16 \,{\left (a^{3} b^{4} x^{4} + 2 \, a^{4} b^{3} x^{2} + a^{5} b^{2}\right )}}, \frac{{\left (3 \, a b^{3} c + a^{2} b^{2} d\right )} x^{3} +{\left ({\left (3 \, b^{3} c + a b^{2} d\right )} x^{4} + 3 \, a^{2} b c + a^{3} d + 2 \,{\left (3 \, a b^{2} c + a^{2} b d\right )} x^{2}\right )} \sqrt{a b} \arctan \left (\frac{\sqrt{a b} x}{a}\right ) +{\left (5 \, a^{2} b^{2} c - a^{3} b d\right )} x}{8 \,{\left (a^{3} b^{4} x^{4} + 2 \, a^{4} b^{3} x^{2} + a^{5} b^{2}\right )}}\right ] \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x^2+c)/(b*x^2+a)^3,x, algorithm="fricas")

[Out]

[1/16*(2*(3*a*b^3*c + a^2*b^2*d)*x^3 - ((3*b^3*c + a*b^2*d)*x^4 + 3*a^2*b*c + a^3*d + 2*(3*a*b^2*c + a^2*b*d)*
x^2)*sqrt(-a*b)*log((b*x^2 - 2*sqrt(-a*b)*x - a)/(b*x^2 + a)) + 2*(5*a^2*b^2*c - a^3*b*d)*x)/(a^3*b^4*x^4 + 2*
a^4*b^3*x^2 + a^5*b^2), 1/8*((3*a*b^3*c + a^2*b^2*d)*x^3 + ((3*b^3*c + a*b^2*d)*x^4 + 3*a^2*b*c + a^3*d + 2*(3
*a*b^2*c + a^2*b*d)*x^2)*sqrt(a*b)*arctan(sqrt(a*b)*x/a) + (5*a^2*b^2*c - a^3*b*d)*x)/(a^3*b^4*x^4 + 2*a^4*b^3
*x^2 + a^5*b^2)]

________________________________________________________________________________________

Sympy [A]  time = 0.713771, size = 150, normalized size = 1.63 \begin{align*} - \frac{\sqrt{- \frac{1}{a^{5} b^{3}}} \left (a d + 3 b c\right ) \log{\left (- a^{3} b \sqrt{- \frac{1}{a^{5} b^{3}}} + x \right )}}{16} + \frac{\sqrt{- \frac{1}{a^{5} b^{3}}} \left (a d + 3 b c\right ) \log{\left (a^{3} b \sqrt{- \frac{1}{a^{5} b^{3}}} + x \right )}}{16} + \frac{x^{3} \left (a b d + 3 b^{2} c\right ) + x \left (- a^{2} d + 5 a b c\right )}{8 a^{4} b + 16 a^{3} b^{2} x^{2} + 8 a^{2} b^{3} x^{4}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x**2+c)/(b*x**2+a)**3,x)

[Out]

-sqrt(-1/(a**5*b**3))*(a*d + 3*b*c)*log(-a**3*b*sqrt(-1/(a**5*b**3)) + x)/16 + sqrt(-1/(a**5*b**3))*(a*d + 3*b
*c)*log(a**3*b*sqrt(-1/(a**5*b**3)) + x)/16 + (x**3*(a*b*d + 3*b**2*c) + x*(-a**2*d + 5*a*b*c))/(8*a**4*b + 16
*a**3*b**2*x**2 + 8*a**2*b**3*x**4)

________________________________________________________________________________________

Giac [A]  time = 1.19545, size = 105, normalized size = 1.14 \begin{align*} \frac{{\left (3 \, b c + a d\right )} \arctan \left (\frac{b x}{\sqrt{a b}}\right )}{8 \, \sqrt{a b} a^{2} b} + \frac{3 \, b^{2} c x^{3} + a b d x^{3} + 5 \, a b c x - a^{2} d x}{8 \,{\left (b x^{2} + a\right )}^{2} a^{2} b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x^2+c)/(b*x^2+a)^3,x, algorithm="giac")

[Out]

1/8*(3*b*c + a*d)*arctan(b*x/sqrt(a*b))/(sqrt(a*b)*a^2*b) + 1/8*(3*b^2*c*x^3 + a*b*d*x^3 + 5*a*b*c*x - a^2*d*x
)/((b*x^2 + a)^2*a^2*b)